package com.xx.happychatboot.serve.user.service;

import com.xx.happychatboot.base.vo.response.ResponseDate;
import com.xx.happychatboot.serve.user.domain.entity.SysUserInfo;
import io.mybatis.service.BaseService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-12-10
 */
public interface ISysUserInfoService extends BaseService<SysUserInfo, Long> {
    /**
     * 获取用户信息
     * @param userId
     * @return
     */
    ResponseDate getUserInfo(Long userId);

    /**
     * 更新用户信息
     * @param userInfo
     * @return
     */
    ResponseDate updateUserInfo(SysUserInfo userInfo);

    /**
     * 通过用户账号查询用户信息
     * @param userName
     * @return
     */
    ResponseDate searchUserByUserName(String userName);
}
